package com.fly.lambda.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by Fly on 2016/7/28.
 */
@Entity
@Table(name = "t_file_info")
public class FileInfo {

    @Id
    @Column(name = "file_id")
    private String fileId;      //文件id

    @Column(name = "file_name")
    private String fileName;    //文件名称

    @Column(name = "extension")
    private String extension;    //后缀名

    @Column(name = "file_size")
    private long fileSize;      //文件大小

    @Column(name = "file_path")
    private String filePath;    //文件存储路径

    @Column(name = "file_url")
    private String fileUrl;     //文件访问地址

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileUrl() {
        return fileUrl;
    }

    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
}
